home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
TP_TOOLS
/
VIDEO.DOC
< prev
next >
Wrap
Text File
|
1992-12-23
|
2KB
|
90 lines
PROGRAMMING MANUAL
------------------
The following list of routines were written to provide graphics support
for programs written in Turbo Pascal (version 5.0). The routines include:
GRAPHICS_CLOSE
GRAPHICS_TEST
GRAPHICS_OPEN_EGA
GRAPHICS_OPEN_VGA
The following is a programming example for proper use of the video routines:
PROGRAM VIDEO_EXAMPLE
USES DOS, CRT, GRAPH, VIDEO
BEGIN
GRAPHICS_TEST;
GRAPHICS_OPEN_VGA;
GRAPHICS_CLOSE;
HALT;
END;
NOTES: 1) The video unit must be included in the USES line (along with any
other required units).
PROGRAMMING MANUAL
------------------
GRAPHICS_CLOSE
USE GRAPHICS_CLOSE;
FUNCTION Shuts down the graphics drivers.
ARGUMENTS None.
COMMENTS None.
PROGRAMMING MANUAL
-----------------
GRAPHICS_TEST
USE GRAPHICS_TEST;
FUNCTION Tests the system for the proper loading of the EGA/VGA driver.
ARGUMENTS None.
COMMENTS The EGA/VGA driver will not load properly on a computer that
does not support EGA or VGA graphics. If this happens this
routine will detect the error and will display an error message
on the computer screen and will terminate the program.
PROGRAMMING MANUAL
-----------------
GRAPHICS_OPEN_EGA
USE GRAPHICS_OPEN_EGA;
FUNCTION Sets the video mode to EGA graphics.
ARGUMENTS None.
COMMENTS None.
PROGRAMMING MANUAL
------------------
GRAPHICS_OPEN_VGA
USE GRAPHICS_OPEN_VGA;
FUNCTION Sets the video mode to VGA graphics.
ARGUMENTS None.
COMMENTS None.